package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.exception.RoleException;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    void add(Role role);

    void deletebyid(Integer id) throws RoleException;

    Map findbyid4updata(Integer id);

    void edit(Role role);

    List<Role> findAll();

}
